package common;

import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Image;

import javax.swing.ImageIcon;
import javax.swing.JDesktopPane;

public class DesktopPane extends JDesktopPane{
	private Image img;  
	public DesktopPane() {  
		try  
		{  
			//img = new ImageIcon(ClassLoader.getSystemResource("img/logo.PNG")).getImage();  
			img = new ImageIcon(ClassLoader.getSystemResource("img/icon_hairdresser.PNG")).getImage();
		}  
		catch(Exception e){}
	}  
	public void paintComponent(Graphics g)  
	{  
		super.paintComponent(g);
		if(img != null) {
			//g.drawImage(img, this.getWidth() - 300, this.getHeight() - 300,this);
			//g.drawImage(img, this.getWidth() - 64, this.getHeight() - 120,this);
			g.setColor(Color.WHITE);
			g.setFont(new Font("Arial",Font.BOLD, 30));
			g.drawString("Edevaldo Cabeleireiro's", this.getWidth() - 350, this.getHeight() -28);
			
		}else {
			g.drawString("Image not found", 50,50);  
		}
	} 

}
